package token

import "context"

const (
	AppName = "token"
)

type Service interface {
	// 业务RPC接口实现约束
	RpcServer
	// 撤销
	RevolkToken(context.Context, *RevolkTokenRequest) (*Token, error)
}

func NewIssueTokenRequest() *IssueTokenRequest {
	return &IssueTokenRequest{}
}

func NewDescribeTokenRequest(ak string) *DescribeTokenRequest {
	return &DescribeTokenRequest{
		AcceessToken: ak,
	}
}
